<?php

declare(strict_types=1);
/**
 * Created by .
 * User: luogan
 * Date: 2021/12/22
 */

namespace App\Exception;

use App\Constants\ErrorCode;
use Hyperf\Server\Exception\ServerException;
use Throwable;

class TestException extends ServerException
{
    public function __construct($message,int $code = ErrorCode::TEST_ERROR_CODE,Throwable $previous = null)
    {
        if (is_null($message)) {
            $message = [];
        }
        parent::__construct($message,$code,$previous);
    }
}
